/**
 * Project Name:kany-utils
 * File Name:CenterFrame.java
 * Package Name:me.kany.utils.swt.frame
 * Date:2016年5月3日上午11:21:58
 * Copyright (c) 2016, Jason.Wang All Rights Reserved.
 *
*/

package me.kany.utils.swt.frame;

import javax.swing.JFrame;

import me.kany.utils.image.awt.manager.SwingResourceManager;

/**
 * ClassName:CenterFrame <br/>
 * Function: 自定义的剧中窗体. <br/>
 * Date: 2016年5月3日 上午11:21:58 <br/>
 * 
 * @author Jason.Wang
 * @version
 * @since JDK 1.7
 * @see
 */
@SuppressWarnings("serial")
public class CenterFrame extends JFrame {
	private String imagePath;

	public CenterFrame() {
		Init();
	}

	public CenterFrame(String imagePath) {
		this.imagePath = imagePath;
		Init();
	}

	protected void Init() {
		super.frameInit();
		setSize(500, 400);
		setLocationRelativeTo(null);
		setDefaultCloseOperation(3);
		setTitle("CenterFrame");
		setIconImage(SwingResourceManager.getImage(CenterFrame.class, "/" + this.imagePath));
	}
}
